package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.dao.LegendMapper;
import com.example.demo.pojo.Legend;
import com.example.demo.service.LegendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LegendServiceImpl  extends ServiceImpl<LegendMapper, Legend> implements LegendService {
    @Autowired
    private LegendMapper legendMapper;


    public List<Legend> getAllLegends(){
        return legendMapper.selectList(null);
    }

    @Override
    public List<Legend> getLegend(String legendName) {
        return legendMapper.getLegend(legendName);
    }

    ;


}
